
package com.jf.cloud.multishop.mapper;

import com.jf.cloud.multishop.model.ShopRenovation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 店铺装修信息
 *
 * @author zz
 * @date 2022-08-12 11:27:18
 */
public interface ShopRenovationMapper {

    /**
     * 获取店铺装修信息列表
     * @param shopRenovation
     * @return 店铺装修信息列表
     */
    List<ShopRenovation> list(@Param("shopRenovation") ShopRenovation shopRenovation);

    /**
     * 根据店铺装修信息id获取店铺装修信息
     *
     * @param renovationId 店铺装修信息id
     * @return 店铺装修信息
     */
    ShopRenovation getByRenovationId(@Param("renovationId") Long renovationId);

    /**
     * 根据店铺id和装修类型获取装修信息
     * @param shopId
     * @param renovationType
     * @return
     */
    ShopRenovation getByShopIdAndRenovationType(@Param("shopId")Long shopId, @Param("renovationType")Integer renovationType);

    /**
     * 保存店铺装修信息
     * @param shopRenovation 店铺装修信息
     */
    void save(@Param("shopRenovation") ShopRenovation shopRenovation);

    /**
     * 更新店铺装修信息
     * @param shopRenovation 店铺装修信息
     */
    void update(@Param("shopRenovation") ShopRenovation shopRenovation);

    /**
     * 根据店铺装修信息id删除店铺装修信息
     * @param renovationId
     */
    void deleteById(@Param("renovationId") Long renovationId);

    /**
     * 更新主页状态
     * @param shopId
     * @param renovationType
     */
    void updateHomeStatus(@Param("shopId") Long shopId, @Param("renovationType") Integer renovationType);
}
